Skip to content

Conversation

@timea-solid
Copy link
Member

This is part of the optimization work.
Drop node 18

Copilot AI review requested due to automatic review settings November 6, 2025 10:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the project structure by reorganizing test setup files, updating configuration files, and making code quality improvements. The changes modernize the testing infrastructure and improve maintainability.

  • Moved test setup files into a test/helpers/ directory for better organization
  • Updated ESLint configuration to use flat config format and target only source files
  • Refactored package.json to use peer dependencies instead of direct dependencies and updated npm scripts
  • Made minor code style improvements (quote consistency, semicolon placement)
  • Dropped Node.js 18.x support, now requiring Node 20.x or 22.x

Reviewed Changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/sourcePane.test.js Updated import path to reference relocated setup file in helpers directory
test/helpers/setup.js New test setup file with context exports (missing some expected exports)
test/helpers/jest.setup.js New Jest setup configuration for test environment initialization
src/sourcePane.js Minor code style fixes (quote consistency) and addition of unused pos variable
package.json Restructured dependencies, updated scripts, and added files field for npm publishing
jest.config.js Updated setup file path and added test coverage configuration
eslint.config.mjs Migrated to flat config format with updated rules and file targeting
.github/workflows/ci.yml Removed Node.js 18.x from test matrix
Comments suppressed due to low confidence (3)

test/sourcePane.test.js:1

  • The imported doc and subject variables are not exported from './helpers/setup'. Only context is exported. This will cause a runtime error when the test runs.
    test/sourcePane.test.js:1
  • Unused variable doc.
    test/sourcePane.test.js:1
  • Unused variable subject.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants